//
//  StoreMenu.m
//  ebook
//
//  Created by 吴超飞 on 16/3/8.
//  Copyright © 2016年 Moton. All rights reserved.
//

#import "StoreMenu.h"

@implementation StoreMenu

-(id)initWithDictionary:(NSDictionary *)aDict{
    
    self = [super init];
    if (self) {
        
        self.title = aDict[@"title"];
        self.url = aDict[@"url"];
  }
    return self;
}


- (instancetype)initWithCoder:(NSCoder *)aDecoder {
    if (self = [super init]) {
        self.title = [aDecoder decodeObjectForKey:@"title"];
        self.url = [aDecoder decodeObjectForKey:@"url"];
    }
    return self;
}

- (void)encodeWithCoder:(NSCoder *)aCoder {
    [aCoder encodeObject:self.title forKey:@"title"];
    [aCoder encodeObject:self.url forKey:@"url"];
}

@end
